/// CreateTime 2020/6/12 16:16
/// CreateUser chen 
/// ProjectName flutter_elf
import 'package:flutter_elf/config/component_index.dart';

class TextSpanPage extends StatefulWidget{
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return TextSpanPageState();
  }
}

class TextSpanPageState extends State<TextSpanPage>{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBarCreator.create(context, 'textSpan带表情'),
      body: Column(
        children: <Widget>[
          RichText(
            text: TextSpan(
              children:[
                TextSpan(text: '话题',style: TextStyle(fontSize: 13,color: Colors.black)),
                TextSpan(text: '#话题#',style: TextStyle(fontSize: 13,color: Colors.lightBlue)),
                TextSpan(text: '话题',style: TextStyle(fontSize: 13,color: Colors.black)),
                TextSpan(text: String.fromCharCode(128517),style: TextStyle(fontSize: 13,color: Colors.black)),
              ]
            ),
          )
        ],
      ),
    );
  }
}